package com.yj_app.qualitytest.info;

import android.text.TextUtils;

import androidx.annotation.NonNull;

import org.litepal.crud.LitePalSupport;

import java.io.Serializable;

public class WorkSpaceInfo extends LitePalSupport implements Serializable {
    /**
     * cjcode : 0301
     * cjname : 阿拉山口车间
     */

    private String cjcode;
    private String cjname;

    public WorkSpaceInfo() {
    }

    public WorkSpaceInfo(String cjcode, String cjname) {
        this.cjcode = cjcode;
        this.cjname = cjname;
    }

    public String getCjcode() {
        return TextUtils.isEmpty(cjcode) ? "" : cjcode;
    }

    public void setCjcode(String cjcode) {
        this.cjcode = (TextUtils.isEmpty(cjcode) ? "" : cjcode);
    }

    public String getCjname() {
        return TextUtils.isEmpty(cjname) ? "" : cjname;
    }

    public void setCjname(String cjname) {
        this.cjname = (TextUtils.isEmpty(cjname) ? "" : cjname);
    }

    @NonNull
    @Override
    public String toString() {
        return getCjname();
    }
}
